var LocString = String(window.document.location.href);

function getQueryStr(str) {
	var rs = new RegExp("(^|)" + str + "=([^\&]*)(\&|$)", "gi").exec(LocString), tmp;

	if (tmp = rs) {
		return tmp[2];
	}

	// parameter cannot be found
	return "";
}

function openWindow(url, name, width, height) {
	window.open (url, name, 'width=' + width + ', height=' + height + ', toolbar=no, menubar=no, scrollbars=no, resizable=yes, location=no, status=no');
}
